
<template>
  <div class="info">
    <div>
        <div class="title">病毒信息</div>
        <p>{{covDesc.note1}}</p>
        <p>{{covDesc.note2}}</p>
        <p>{{covDesc.note3}}</p>
        <p>{{covDesc.remark1}}</p>
        <p>{{covDesc.remark2}}</p>
        <p>{{covDesc.remark3}}</p>
    </div>
    <div class="hot">
      <div class="title">
        <img src="../../../assets/images/hot.png" width="60px" alt="">
      </div>
      <ul>
        <li v-for="item in news" :key="item.id">
          <span>最新</span>{{item.title}}
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  name: 'CovInfo',
  props:{
    covDesc:{
      type:Object,
      default:function(){
        return{}
      }
    },
    news:{
      type:Array,
      default:[]
    }
  }
}
</script>

<style  scoped>
.info{
  padding: 0.2rem;
}
.title{
  border-left: 0.1rem solid rgb(20, 49, 128);
  padding-left: 0.1rem;
  margin-top: 0.2rem;
}
p{
  line-height: 0.5rem;
  color: #666;
}
li{
  font-size: 0.3rem;
  line-height: 0.6rem;
  color: rgb(56, 56, 56);
}
li span {
  background-color: rgb(240, 85, 58);
  font-size: 0.1rem;
  padding: 3px;
  color: white;
  border-radius: 5px;
  margin-right: 0.1rem;
}
</style>

